#include<iostream>
using namespace std;

int main() {
    int foo, bar = 0, count = 0;
    for(;;) {
        cin >> foo;
        if (foo == 9999) break;
        bar += foo;
        count++;
    }
    cout << "The average is " << (double)(bar)/count;
    return 0;

}
